import Vue from 'vue';
import Router from 'vue-router';
import Xingzuo from "../components/xingzuo/xingzuo.vue";
import Faxian from "../components/faxian/faxian.vue";
import Xingwen from "../components/xingwen/xingwen.vue";
import Personal from "../components/personal/personal.vue";
import Main from '@/components/main';

Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      name: 'Main',
      component: Main,
      children:[{
            path:"/main/xingzuo",
            component:Xingzuo
          },{
            path:"/main/faxian",
            component:Faxian
          },{
            path:"/main/xingwen",
            component:Xingwen
          },{
            path:"/main/personal",
            component:Personal
      }]
    }
  ]
})
